<?php
/**
{
    "tableMenuId": "INT //",
    "mainName": "VARCHAR //主菜单",
    "subName": "VARCHAR //子菜单",
    "idx": "INT //显示顺序",
    "tableName": "VARCHAR //表名",
    "status": "TINYINT //状态@status; 3::有效::@admin; 4::删除::@admin; @noLoad; "
}
 */

class TableMenu extends Base
{
    
	public $tableMenuId= '';//
	public $mainName= NULL;//主菜单
	public $subName= NULL;//子菜单
	public $idx= '';//显示顺序
	public $tableName= NULL;//表名
	public $status= "3";//状态@status;3::有效::@admin;4::删除::@admin;@noLoad;

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_table_menu';
    }
    
    public  function key(){
        return 'tableMenuId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return array (  0 => 'status',);
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'TableMenu';
    }
    
    public  function field()
    {
        return array (  'tableMenuId' =>   array (    0 => 'INT',    1 => 11,    2 => '',  ),  'mainName' =>   array (    0 => 'VARCHAR',    1 => 50,    2 => '主菜单',  ),  'subName' =>   array (    0 => 'VARCHAR',    1 => 50,    2 => '子菜单',  ),  'idx' =>   array (    0 => 'INT',    1 => 11,    2 => '显示顺序',  ),  'tableName' =>   array (    0 => 'VARCHAR',    1 => 200,    2 => '表名',  ),  'status' =>   array (    0 => 'TINYINT',    1 => 4,    2 => '状态@status;3::有效::@admin;4::删除::@admin;@noLoad;',  ),);
    }


}